/*
 * Test.cpp
 *
 *  Created on: 2010-5-30
 *      Author: guobc
 */

#include <iostream>
#include <string>
#include <algorithm>
#include <cctype>

using namespace std;

namespace HA {

class Tools {

private:
	inline static char toUpper(char ch) {
		return toupper(ch);
	}

	inline static char toLower(char ch) {
		return tolower(ch);
	}

public:
	inline static string toUpperCase(string& str) {
		transform(str.begin(), str.end(), str.begin(), toUpper);
		return str;
	}

	inline static string toLowerCase(string& str) {
		transform(str.begin(), str.end(), str.begin(), toLower);
		return str;
	}

};
}

